package com.waterwolf.wolfbot.debugs;

import java.awt.Graphics;

import com.waterwolf.wolfbot.internal.Client;
import com.waterwolf.wolfbot.internal.GEItem;

public class GEItemsDebug extends AbstractDebug {

    @Override
    public int paint(final Client c, final Graphics g, int i) {
        
        stringDrawer(g, "GEItems: ", i);
        i++;
        for (final GEItem gei : c.getGEItems()) {
            if (gei == null) {
                stringDrawer(g, "null", i);
                i++;
            }
            else {
                stringDrawer(g, gei.getId() + " " + gei.getPrice(), i);
                i++;
            }
        }
        
        return i;
    }

}
